/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.CRPViolation;

/**
 *
 * @author Leo
 */
public class AccntType {
    
    private double bal;
    private double rate;
   public AccntType(){
   }
   public double getBal() {
        return bal;
    }

    public void setBal(double bal) {
        this.bal = bal;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }
    public double deposit(double amnt){
    return bal+=amnt;
    }
    public void calcInterest(){
        bal = bal*(rate/12);
    }
}
